# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo4.21
# Description:
# Author:       98745
# Date:         2019/2/26
#-------------------------------------------------------------------------------

spacenum=5
i=1
linespasenum=spacenum
triangle=[]
while linespasenum>=0:
    leftspacelist=[' ']*linespasenum
    starlist=['*']*(2*i-1)
    rightspacelist=[' ']*linespasenum
    linelist=leftspacelist+starlist+rightspacelist
    triangle.append(linelist)
    linespasenum-=1
    i+=1
for line in triangle:
    print(line)